package cn.nyse.ktc_spit.service;

import cn.nyse.ktc_spit.entity.Spit;
import org.springframework.data.domain.Page;

import java.util.List;

public interface SpitService {
    void save(Spit spit);

    List<Spit> findAllPage();

    List<Spit> findBySpitId(String spitId);

    void updateSpit(String spitId, String userid);

    List<Spit> searchByCondition(Spit spit);

    Page<Spit> findSpitPage(int page, int size, Spit spit);

    Page<Spit> findByParentid(String parentid, int page, int size);

}
